<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ext4yii xmlns:ext="http://www.w3.org/1999/xhtml" xmlns:prop="http://www.w3.org/1999/xhtml"/>

<prop:ColumnModel>
    <ext:GridColumnModel>
        <prop:GridColumns>
            <?php foreach (Invoiceline::model()->attributeLabels() as $dataIndex => $header): ?>
            <?php if ($dataIndex != 'InvoiceId'): ?>
                        <ext:GridColumn dataindex="<?php echo $dataIndex ?>" sortable="true" header="<?php echo $header ?>"/>
            <?php endif; ?>
            <?php endforeach; ?>
        </prop:GridColumns>
    </ext:GridColumnModel>
</prop:ColumnModel>

<prop:View>
    <ext:GridView forcefit="true"/>
</prop:View>